package com.ruoyi.logistic.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.logistic.domain.NetworkExportConfiguration;
import com.ruoyi.logistic.domain.PageDate;
import com.ruoyi.logistic.domain.vo.NetworkExportConfigurationSearchVo;
import com.ruoyi.logistic.mapper.NetworkExportConfigurationMapper;
import com.ruoyi.logistic.service.INetworkExportConfigurationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.List;

@Service
public class NetworkExportConfigurationServiceImpl implements INetworkExportConfigurationService {
    @Autowired
    private NetworkExportConfigurationMapper networkExportConfigurationMapper;
    @Override
    public List<NetworkExportConfiguration> selectAll(PageDate pageDate) {
        PageHelper.startPage(pageDate);
        return networkExportConfigurationMapper.selectAll();
    }

    @Override
    public Boolean insert(NetworkExportConfiguration networkExportConfiguration) {
        return networkExportConfigurationMapper.insert(networkExportConfiguration);
    }

    @Override
    public Boolean update(NetworkExportConfiguration networkExportConfiguration) {
        return networkExportConfigurationMapper.update(networkExportConfiguration);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return networkExportConfigurationMapper.deleteById(id);
    }

    @Override
    public NetworkExportConfiguration findById(Integer id) {
        return networkExportConfigurationMapper.findById(id);
    }

    @Override
    public Integer deleteByIds(List<Integer> ids) {
        return networkExportConfigurationMapper.deleteByIds(ids);
    }

    @Override
    public List<NetworkExportConfiguration> search(NetworkExportConfigurationSearchVo networkExportConfigurationSearchVo) {
        PageHelper.startPage(networkExportConfigurationSearchVo.getPageDate());
        return networkExportConfigurationMapper.search(networkExportConfigurationSearchVo);
    }
}
